package com.designpatterns.singleton;

/**
 * Singleton Class
 *
 * @author Haiqi.Wang
 * @since 2013-5-30下午4:44:08
 */
public class Singleton {
	
	/**
	 * Singleton Attribute
	 */
	private static Singleton singleton;
	
	/**
	 * Private Constructor
	 */
	private Singleton() {}
	
	/**
	 * Static Method Get Singleton
	 * @return Singleon Object
	 */
	public static Singleton getInstance() {
		if (singleton == null) {
			singleton = new Singleton();
		}
		return singleton;
	}
}
